package com.east.login.serviceimpl;

import com.east.login.bean.Users;
import com.east.login.dao.UsersDao;
import com.east.login.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("usersService")
public class UsersServiceImpl implements UsersService{

    @Autowired
    private UsersDao usersDao;


    @Override
    public Users findUsersByNameAndPassword(String username, String password) {
        Users users= null;
        users= usersDao.findUsersByNameAndPassword(username, password);
        return users;
    }

    @Override
    public void insertUsers(Users users) {
        usersDao.insertUsers(users);
    }
}
